package sk.stuba.fiit.ltasys.ws.client;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.ws.client.core.WebServiceTemplate;

import sk.stuba.fiit.pki.ws.schema.beans.CrlRequest;
import sk.stuba.fiit.pki.ws.schema.beans.CrlResponse;



/**
 * 
 * @author Marek Hruska
 *
 */
@Component
public class CRLServiceClient {

	@Autowired
	private WebServiceTemplate crlWsTemplate;

	
	public  CrlResponse getActualCrl(CrlRequest request) {
		CrlResponse response = (CrlResponse) crlWsTemplate.marshalSendAndReceive(request);
		return response;
	}
	
}
